﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace CongregacaoOs.WebForm.VideoAulas
{
    public partial class Aula011 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string valor = Request.QueryString["Video"];

            if (valor!= "")
            {
                MediaPlayer1.MediaSource = "~/VideoAulas/Videos/" + valor + ".mp4";
                MediaPlayer1.DataBind();
            }
            else
            {
                Response.Redirect("~/VideoAulas/HomeAula.aspx");
            }

            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/VideoAulas/HomeAula.aspx");
        }
    }
}